package com.suretech.nms.subagent;

import org.snmp4j.agent.MOAccess;
import org.snmp4j.agent.mo.MOScalar;
import org.snmp4j.smi.OID;
import org.snmp4j.smi.Variable;

public class AgentScalar extends MOScalar{
	private AgentScalarService agentScalarService;
	
	public AgentScalar(OID id, MOAccess access, Variable value,AgentScalarService agentScalarService) {
		super(id, access, value);
		this.agentScalarService = agentScalarService;
	}
	
	public Variable getValue() {
		return agentScalarService.getValue();
	}

	public int setValue(Variable newValue) {
		return agentScalarService.setValue(newValue);
	}
}
